import request from "@/utils/request"

// 查询告警总列表
export const listAlarm = (params = {}) => { return request.get('/business/alarm/list', { params }) }
// 查询告警数量
export const statCount = (params = {}) => { return request.get('/business/alarm/statCount', { params }) }
// 获取告警详情
export const getAlarmDetail = ( alarmId ) => { return request.get(`/business/alarm/${alarmId}`) }
// 获取告警关联设备
export const getReasonDevice = (params = {}) => { return request.get('/business/associationDevice/list', { params }) }
// 修改告警
export const updateAlarm = (params = {}) => { return request.put('/business/alarm', params) }
// 查询告警操作记录列表
export const listAlarmOperate = (params = {}) => { return request.get(`/business/alarmOperateRecord/list/`, { params }) }
// 查询报警消息(app|短信|语音)列表
export const listAlarmMessage = (params = {}) => { return request.get(`/business/alarmMessage/list/`, { params }) }
// 查询设备操作记录列表
export const listDeviceAlarmOperateRecord = (params = {}) => { return request.get(`/business/alarmOperateRecord/listDeviceAlarmOperateRecord`, { params }) }
// 查询告警事件类型按一级分类返回对应的列表
export const categoryNameDataList = (params = {}) => { return request.get(`/business/alarmEventType/categoryNameDataList`, { params }) }